<link rel="stylesheet" href="lib/datepicker/css/datepicker.css"/>
<link rel="stylesheet" href="app/stat/css/stat.css"/>
<div ng-hide="true" ng-controller="GlobalController"></div>
<div class="panel panel-default search-panel" ng-controller="FilterController">
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group" ng-show="!onlyNode">
                <select class="form-control" ng-model="query_dimension">
                    <option ng-repeat="dimension in dimensions" value="{{ dimension }}" ng-selected="query_dimension == dimension">{{ dimensionMap[dimension] }}</option>
                </select>
            </div>
            <div class="form-group">
                <select class="form-control" ng-model="query_nodeId">
                    <option value="">选择Solr节点</option>
                    <option ng-repeat="node in nodes" value="{{ node.id }}" ng-selected="query_nodeId == node.id">{{ node.name }}</option>
                </select>
            </div>
            <div class="form-group" ng-hide="onlyNode">
                <select class="form-control" ng-model="query_collectionId">
                    <option value="">选择Solr集合</option>
                    <option ng-repeat="collection in collections" value="{{ collection.id }}" ng-selected="query_collectionId == collection.id">{{ collection.name }}</option>
                </select>
            </div>
            <div class="form-group" ng-hide="onlyNode">
                <select class="form-control" ng-model="query_replicaId">
                    <option value="">选择Solr副本</option>
                    <option ng-repeat="replica in replicas" value="{{ replica.id }}" ng-selected="query_replicaId == replica.id">{{ replica.coreName }}</option>
                </select>
            </div>
            <div class="form-group">
                <select class="form-control" ng-model="query_statType">
                    <option value="{{ STAT_TYPE_HOUR }}" ng-selected="query_statType == STAT_TYPE_HOUR">按小时统计</option>
                    <option value="{{ STAT_TYPE_DAY }}" ng-selected="query_statType == STAT_TYPE_DAY">按天统计</option>
                    <option value="{{ STAT_TYPE_MONTH }}" ng-selected="query_statType == STAT_TYPE_MONTH">按月统计</option>
                </select>
            </div>
            <div class="form-group">
                <input type="text" id="query_startTime" class="form-control" placeholder="开始时间" />
            </div>
            <div class="form-group">
                <input type="text" id="query_endTime" class="form-control" placeholder="结束时间" />
            </div>
            <button type="submit" class="btn btn-default" ng-click="query()">查找</button>
            <button type="submit" class="btn btn-default" ng-click="reset()">重置</button>
        </form>
    </div>
</div>